package cn.ibizlab.odoo.core.odoo_payment.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_payment.domain.Payment_transaction;
import cn.ibizlab.odoo.core.odoo_payment.filter.Payment_transactionSearchContext;

/**
 * 实体[Payment_transaction] 服务对象接口
 */

public interface IPayment_transactionService{
     boolean create(Payment_transaction payment_transaction) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     boolean remove(Integer id) ;
     void createBatch(List<Payment_transaction> payment_transactions, int batchSize) ;
     Payment_transaction get(Integer id) ;
     Payment_transaction get(Payment_transaction payment_transaction) ;
     void updateBatch(List<Payment_transaction> payment_transactions, int batchSize) ;
     boolean update(Payment_transaction payment_transaction) ;

    /**
     * 查询集合 默认查询
     */
    Page<Payment_transaction> searchDefault(Payment_transactionSearchContext context) ;

    /**
     * 根据付款查询
     */
     Page<Payment_transaction> selectByOdoo_payment(Integer id) ;

    /**
     * 根据付款收单方查询
     */
     Page<Payment_transaction> selectByOdoo_acquirer(Integer id) ;

    /**
     * 根据付款令牌查询
     */
     Page<Payment_transaction> selectByOdoo_payment_token(Integer id) ;

    /**
     * 根据国家/地区查询
     */
     Page<Payment_transaction> selectByOdoo_partner_country(Integer id) ;

    /**
     * 根据币种查询
     */
     Page<Payment_transaction> selectByOdoo_currency(Integer id) ;

    /**
     * 根据联系人查询
     */
     Page<Payment_transaction> selectByOdoo_partner(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Payment_transaction> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Payment_transaction> selectByOdoo_write(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Payment_transaction convert2Domain(cn.ibizlab.odoo.core.client.model.Ipayment_transaction model ,Payment_transaction domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Ipayment_transaction convert2Model(Payment_transaction domain , cn.ibizlab.odoo.core.client.model.Ipayment_transaction model);

}
